package com.dkd.manage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 区域管理对象 tb_region
 * 
 * @author ruoyi
 * @date 2025-10-31
 */
@TableName("tb_region")
@Data
@EqualsAndHashCode(callSuper = false)
public class TbRegion extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;
    @TableField(exist = true)
    private Date createTime;
    @TableField(exist = true)
    private Date updateTime;
    @TableField(exist = true)
    private String createBy;
    @TableField(exist = true)
    private String updateBy;
    @TableField(exist = true)
    private String remark;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("regionName", getRegionName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
